package edu.sctu.wulixia.month6.day20150628;

/**
 * Created by user05 on 2015/6/28.
 */
public class GoodsSize {

    public void isJudgePrice(JsonAppbean json){
        int maxGoodsSize = 0;
        int minGoodsSize = 0;

        for (ListAppbean listApp:json.list) {
            if (Float.parseFloat(listApp.goods_price) > 100) {
                maxGoodsSize++;
            }
            if (Float.parseFloat(listApp.goods_price) < 100) {
                minGoodsSize++;
            }
        }

        System.out.println("大于100为：" + maxGoodsSize);
        System.out.println("小于100为：" + minGoodsSize);
    }

}
